package com.exam.role.model;

import java.util.ArrayList;
import java.util.List;

/**
 * Module entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Module implements java.io.Serializable
{

	// Fields

	private Integer id;
	private String title;
	private String murl;
	private String level;
	/*
	 * 父菜单
	 */
	private Module parent;
	private Integer parentId;
	/*
	 * 子菜单
	 */
	private List<Module> modules = new ArrayList<Module>(0);
	private String flag;
	private String remarks;
	private List<RoleModule> roleModules = new ArrayList<RoleModule>(0);
	private Boolean haveRole;
	public Boolean getHaveRole() {
		return haveRole;
	}

	public void setHaveRole(Boolean haveRole) {
		this.haveRole = haveRole;
	}

	public Module getParent() {
		return parent;
	}

	public void setParent(Module parent) {
		this.parent = parent;
	}

	public List<Module> getModules() {
		return modules;
	}

	public void setModules(List<Module> modules) {
		this.modules = modules;
	}

	public List<RoleModule> getRoleModules() {
		return roleModules;
	}

	public void setRoleModules(List<RoleModule> roleModules) {
		this.roleModules = roleModules;
	}

	// Constructors

	/** default constructor */
	public Module()
	{
	}

	/** minimal constructor */
	public Module(String title, String level, String flag)
	{
		this.title = title;
		this.level = level;
		this.flag = flag;
	}


	// Property accessors

	public Integer getId()
	{
		return this.id;
	}

	public void setId(Integer id)
	{
		this.id = id;
	}

	public String getTitle()
	{
		return this.title;
	}

	public void setTitle(String title)
	{
		this.title = title;
	}

	public String getMurl()
	{
		return this.murl;
	}

	public void setMurl(String murl)
	{
		this.murl = murl;
	}

	public String getLevel()
	{
		return this.level;
	}

	public void setLevel(String level)
	{
		this.level = level;
	}

	public String getFlag()
	{
		return this.flag;
	}

	public void setFlag(String flag)
	{
		this.flag = flag;
	}

	public String getRemarks()
	{
		return this.remarks;
	}

	public void setRemarks(String remarks)
	{
		this.remarks = remarks;
	}

	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

}